import React from 'react';
import ReactDOM from 'react-dom';
import {BrowserRouter} from "react-router-dom";
import {Provider as ReduxProvider} from "react-redux";
import Layout from './component/Layout';
import createStore from "./state/store";
import "antd/dist/antd.min.css";

const store = createStore(window.REDUX_DATA || {});

const jsx = (
    <ReduxProvider store={store}>
        <BrowserRouter>
            <Layout/>
        </BrowserRouter>
    </ReduxProvider>
);

ReactDOM.render(jsx, document.getElementById('root'));
